﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using CDB.Model.Colunas;
using CDB.DataLayer.Colunas;

namespace CDB.BusinessLayer.Colunas
{
    public class BLColuna
    {
        #region Propriedades
        private string StringConnection { get; set; }
        private string Provider { get; set; }
        #endregion

        #region Construtor
        public BLColuna(string pstrConnection, string pstrProvider)
        {
            this.StringConnection = pstrConnection;
            this.Provider = pstrProvider;
        }
        #endregion

        #region Métodos
        #region Listar
        public Collection<Coluna> Listar(string pstrNomeTabela)
        {
            DLColuna objDLColuna = new DLColuna(this.StringConnection, this.Provider);

            return objDLColuna.Listar(pstrNomeTabela);
        }
        #endregion
        #endregion
    }
}
